
public class LeapYear {
    public static void main(String[] args) {
        int year=2000;
        if((year%4==0)&&(year%100==0)||(year%400)==0)//四年一闰，百年不闰，四百年在闰
        {
            System.out.println(year+"年是闰年！");
        }
    }
}
